
<%@ page contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ include file="/WEB-INF/jsp/commons/taglibs.jsp"%>
<link href="${ctx}/resources/css/print.css" type="text/css" rel="stylesheet" />
<script src="${ctx}/resources/js/jquery.PrintArea.js" type="text/javascript"></script>
<script>
	$(function() {
		$("#printBtn").click(function() {
			$("#qrDiv").printArea();
		});
	});
</script>
<div class="well">
	<div class="container form-horizontal">
		<button id="printBtn" class="btn">打印二维码</button>
	</div>
	<div class="container"></div>
</div>
<div class="container form-horizontal">
	<div id="qrDiv">
		<div class="qr box">
			<img src="${box.uri }" class="goods">
			<span>b.${box.id }.${box.qrCode }.${box.createScale }</span>
			<div class="qrText">
				b.箱码
				<br />
				g.商品二维码
				<br />
				i.商品积分码
			</div>
		</div>
		<c:forEach items="${goodsList }" var="goods">
			<div class="qr">
				<img src="${goods.goodsUri }" class="goods">
				<span>g.${goods.innerNum }</span>
				<img src="${goods.integralUri }" class="integral">
				<span>i.${goods.innerNum }</span>
			</div>
		</c:forEach>
	</div>
</div>